package com.igeek.javase.ch03;

import java.util.Scanner;
/**
 * @author chenmin
 * 2023/7/11 18:24
 * @description IFtest2
 */
public class IFtest2 {
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        System.out.println("请输入票价：");
        double price = scan.nextDouble();
        System.out.println("请输入日期：");
        double Date = scan.nextDouble();
        if((Date>=1.01&&Date<=1.03)||(Date>=5.01&&Date<=5.03)||(Date>=10.01&&Date<=10.03)){
            System.out.println("票价为:"+price);
        }else{
            System.out.println("票价为:"+0.8*price);
        }
    }

}
